package com.dc.ssjt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dc.ssjt.entity.Storage;

/**
 * Storage数据操作
 *
 * @author duchao
 */
public interface StorageMapper extends BaseMapper<Storage> {

    /**
     * 扣减库存
     *
     * @param productId 商品id
     * @param count     扣减库存数
     */
    void decrease(Long productId, Integer count);
}
